Namespacing everything to /UVa.
[andmenj-acm.git] / UVa / 900 - Brick Wall Patterns / 900.cpp
blobc67a7afdf7f79b9a8d7ba55c39925f5fe0ccbbf8
1 #include <iostream>
3 using namespace std;
5 unsigned long long f[51];
7 int main(){
8 f[0] = 0;
9 f[1] = 1;
10 f[2] = 2;
11 for (int i=3; i<=50; ++i){
12 f[i] = f[i-1] + f[i-2];
14 int n;
15 while (cin >> n && n){
16 cout << f[n] << endl;